package com.xueshishasha.oa.service;

import java.io.Serializable;
import java.util.Collection;
import java.util.List;

import org.hibernate.criterion.DetachedCriteria;

import com.xueshishasha.oa.model.Role;

public interface RoleService {

	public Role getInfo(String id);

	public void updateInfo(Role role);

	public Serializable save(Role role);

	public void delete(Role role);

	public List<Role> getAll();

	public Role getModelById(Serializable id);

	public List<Role> getModels(String hql, Object[] parameters);

	public void saveOrUpdate(Role role);

	public void saveOrUpdateAll(Collection<Role> collection);

	public void update(Role role);

	public List<Role> getByCriteria(DetachedCriteria dc);

}
